package es.wandererteam.tapakitty;

import org.andengine.entity.scene.background.AutoParallaxBackground;
import org.andengine.entity.scene.background.ParallaxBackground.ParallaxEntity;
import org.andengine.entity.sprite.Sprite;

import es.wandererteam.tapakitty.management.BaseScene;
import es.wandererteam.tapakitty.management.SceneManager;
import es.wandererteam.tapakitty.management.SceneManager.SceneType;

public class ObjectScene extends BaseScene{

	@Override
	public void createScene() {
		// TODO Auto-generated method stub
		createBackground();
	}

	@Override
	public void onBackKeyPressed() {
		// TODO Auto-generated method stub
		SceneManager.getInstance().loadGameScene(engine);
	}

	@Override
	public SceneType getSceneType() {
		// TODO Auto-generated method stub
		return SceneType.SCENE_MENU;
	}

	@Override
	public void disposeScene() {
		// TODO Auto-generated method stub
		
	}
	
	private void createBackground() {
		AutoParallaxBackground auto = new AutoParallaxBackground(0, 0, 0, 5);
		auto.attachParallaxEntity(new ParallaxEntity(0, new Sprite(0, 0,
				resourcesManager.objectBackgroundTexture, vbom)));
		
		this.setBackground(auto);

	}

}
